package com.websocket.mapper;

import com.websocket.model.ChatHistory;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

@Mapper
public interface ChatHistoryMapper {
    @Insert("INSERT INTO chat_history(content) VALUES(#{content})")
    @Options(useGeneratedKeys = true, keyProperty = "id")
    void insert(ChatHistory chatHistory);
}